package cc.messcat.web.system;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import cc.messcat.common.constant.CommonConstant;
import cc.messcat.common.model.ResponseBean;
import cc.messcat.entity.level.RoleLevel;
import cc.messcat.entity.system.Role;
import cc.messcat.service.system.RoleLevelService;

@Controller
@RequestMapping("/roleLevel")
public class RoleLevelController {
	
//	@Autowired
//	private RoleLevelService roleLevelService;
//
//	@RequestMapping(value = "getRoleLevelAll", method = RequestMethod.GET)
//	@ResponseBody
//	public Object getRoleLevelAll(HttpSession session) throws Exception {
//		Role role = (Role) session.getAttribute("role");
//		Long areaId = role.getAreaId();
//		RoleLevel roleLevel = role.getRoleLevel();
//		List<RoleLevel> roleLevels = roleLevelService.lietRoleLevels(roleLevel);
//		return new ResponseBean(CommonConstant.SUCCESS_CODE_200, CommonConstant.MSG_FIND_SUCCESS, roleLevels);
//	}
}
